package com.xbongbong.paas.domain.dao;

import com.xbongbong.paas.domain.entity.BusinessRuleLogEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2020/5/9 16:35
 * @since v1.0
 */
@Repository
@Mapper
public interface BusinessRuleLogDao {

    /**
     * 插入实体
     * @param businessRuleLogEntity
     * @return
     */
    Integer insert(BusinessRuleLogEntity businessRuleLogEntity);

    /**
     * 更新实体
     * @param businessRuleLogEntity
     * @return
     */
    Integer update(BusinessRuleLogEntity businessRuleLogEntity);

    /**
     * 删除实体
     * @param key
     * @param corpid
     * @return
     */
    Integer deleteByKey(@Param("key") Long key, @Param("corpid") String corpid);

    /**
     * 获取单个实体
     * @param key
     * @param corpid
     * @return
     */
    BusinessRuleLogEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid);
    /**
     * 获取单个实体
     * @param param
     * @return
     */
    List<BusinessRuleLogEntity> findEntitys(@Param("param") Map<String, Object> param);
    /**
     * 获取单个实体
     * @param param
     * @return
     */
    Integer getEntitysCount(@Param("param") Map<String, Object> param);

}
